package com.ys.web.service;

import java.io.IOException;
import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.beans.factory.annotation.Autowired;

import com.ys.web.dao.CommonDao;
import com.ys.web.entity.Backup;
import com.ys.web.pojo.BackupDescription;
import com.ys.web.pojo.BackupInfo;



public interface BackupService {

	public String getCompanyName(Integer id);

	public void saveBackupInfo(BackupInfo backupInfo);

	public List<BackupInfo> getBackupInfo();

	public List<String> getBackupInfoById(Integer id);

	public void deleteCompanyBackup(Integer id);
	
	public String getBackupIsGood(Integer id); 

	public Integer getBackupHasPath(Integer id); 
	
	public List<BackupDescription> getBackupDescription(Integer id);
	
	public Integer getIdByDescription(String description);
	
	public Integer signGoodBackup(Integer id);
	
	public Integer signCommonBackup(Integer id);
	
	public String downloadBackup(HttpServletRequest httpServletRequest,HttpServletResponse httpServletResponse,Integer id) throws IOException;
	
}
